package com.yuanfeng.goods.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName GoodsRecIndexEntity
 * @Description
 * @Author hyq
 * @Date 2023/7/7 14:47
 * @Version 1.0
 **/
@RestController
@RequestMapping("/goods/recIndex")
public class GoodsRecIndexController extends BaseController{

    /**
     *
     *更新热销产品
     * @param
     * @return
     */
    @GetMapping("/rec/update")
    public ResponseResult updateWebIndexRecGoods(@RequestParam("commonId") String commonId) {
       ResponseResult result = goodsRecIndexService.updateWebIndexRecGoods(commonId);
        return result;
    }
}
